import request from '@/utils/request'

// 查询订单消息列表
export function listOrdernotice(query) {
  return request({
    url: '/business/ordernotice/list',
    method: 'get',
    params: query
  })
}

// 查询订单消息详细
export function getOrdernotice(id) {
  return request({
    url: '/business/ordernotice/' + id,
    method: 'get'
  })
}

// 新增订单消息
export function addOrdernotice(data) {
  return request({
    url: '/business/ordernotice',
    method: 'post',
    data: data
  })
}

// 修改订单消息
export function updateOrdernotice(data) {
  return request({
    url: '/business/ordernotice',
    method: 'put',
    data: data
  })
}

// 删除订单消息
export function delOrdernotice(id) {
  return request({
    url: '/business/ordernotice/' + id,
    method: 'delete'
  })
}
